home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / V2 / DJLSR200.ZIP / src / libc / posix / unistd / setpgid.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-02  |  254 b   |  16 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #include <unistd.h>
  3. #include <errno.h>
  4.  
  5. /* ARGSUSED */
  6. int
  7. setpgid(pid_t _pid, pid_t _pgid)
  8. {
  9.   if (_pgid != getpid())
  10.   {
  11.     errno = EPERM;
  12.     return -1;
  13.   }
  14.   return 0;
  15. }
  16.